Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stdout of compiler to OutputChannel #505

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yaner-here
Copy link
Contributor

@yaner-here yaner-here commented Nov 12, 2024

Some compilers (such as MSVC) will output logs to both stderr and stdout. Showing stdout could be helpful when troubleshooting.

PS C:\> cl.exe test.cpp /Fe: test.bin -D DEBUG -D CPH 1>stdout.txt 2> stderr.txt      


PS C:\> cat .\stderr.txt                       
Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34120 for x64
Copyright (C) Microsoft Corporation. All rights reserved.


PS C:\> cat .\stdout.txt
test.cpp
c:\test.cpp: fatal error C1041: Unable to open program database "C:\Program Files\Microsoft VS Code\vc140.pdb"; if you want to write multiple CL.EXE to the same .PDB file, use /FS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant